import axios from 'axios'
const Axios = {
  install (Vue) {
    const res = Vue.prototype.$auth
    const result = axios.create({ baseURL: 'http://tpadmin.test/api/' })
    result.interceptors.request.use((config) => {
      console.log(config)
      config.headers.Authorization = res.getAuthorization()
      return config
    })
    Vue.prototype.$http = result
  }
}
export default Axios
